package com.javacoo.junit.generator.maven.log;

import com.javacoo.junit.generator.logging.AbstractLogFactory;
import com.javacoo.junit.generator.logging.Log;
import org.apache.maven.plugin.Mojo;
/**
 * Maven日志工程
 * <p>说明:</p>
 * <li></li>
 * @author duanyong@jccfc.com
 * @date 2021/1/1 8:43
 */
public class MavenLogFactory implements AbstractLogFactory {

    private final MavenLogImpl logImplementation;

    public MavenLogFactory(Mojo mojo) {
        logImplementation = new MavenLogImpl(mojo.getLog());
    }

    @Override
    public Log getLog(Class<?> targetClass) {
        return logImplementation;
    }
}
